<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@yield('title','后台首页')</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="{{ asset('style/bootstrap.css') }}" rel="stylesheet">
    <link href="{{ asset('style/font-awesome.css') }}" rel="stylesheet">
    <link href="{{ asset('style/weather-icons.css') }}" rel="stylesheet">
    <!--Beyond styles-->
    <link id="beyond-link" href="{{ asset('style/beyond.css') }}" rel="stylesheet" type="text/css">
    <link href="{{ asset('style/demo.css') }}" rel="stylesheet">
    <link href="{{ asset('style/typicons.css') }}" rel="stylesheet">
    <link href="{{ asset('style/animate.css') }}" rel="stylesheet">
    <link href="{{ asset('css/admin.css') }}" rel="stylesheet">
    @yield('style')
</head>
<body>
<!-- /头部 -->
    @include('admin.common.top')
    <!-- /头部 -->
    <div class="main-container container-fluid">
        <div class="page-container">
        @include('admin.common.menu')
            <div class="page-content">
        <!-- Page Content -->
                @yield('content')
            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
    </div>
<!--Basic Scripts-->
<script src="{{ asset('style/jquery-2.0.3.min.js') }}"></script>
<script src="{{ asset('style/bootstrap.js') }}"></script>
<!--Beyond Scripts-->
<script src="{{ asset('style/beyond.js') }}"></script>
<script type="text/javascript" src="{{  asset('plugins/layer/layer.js') }}"></script>
@include('admin.common.footer')
@yield('script')
</body>
</html>
<script>
    $(function () {
        //默认给ajax请求增加上csrf-token
        $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            }
        });
    })
</script>
